//
//  HeaderView.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/12.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "HeaderView.h"

@implementation HeaderView



- (instancetype)initWithFrame:(CGRect)frame{


    self = [super initWithFrame:frame];

    
    if (self) {
        self.label = [[UILabel alloc]init];
        self.label.textColor = [UIColor whiteColor];
       
        [self addSubview:self.label];
    }
    
    return self;
}


-(void)layoutSubviews{

    [super layoutSubviews];
    
    self.label.frame = CGRectMake(0, 5, self.bounds.size.width *0.5, self.bounds.size.height);


}

@end
